<template>
    <el-result :title="'欢迎“'+userInfo && userInfo.userName+'”登录'" subTitle="登录成功！用户未配置权限或权限不足">
      <template slot="icon">
        <el-image src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"></el-image>
      </template>
      <template slot="extra">
        <el-button type="primary" size="medium" @click="toLogin">重新登录</el-button>
      </template>
    </el-result>
</template>

<script>
import { mapGetters } from 'vuex'
import { userLogout } from '@/utils/auth'
export default {
  components: {},
  data () {
    return {}
  },
  computed: {
    ...mapGetters(['userInfo'])
  },
  methods: {
    toLogin () {
      userLogout()
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
